﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NextGenSystems.WHMCS
{

    [DataContract()]
    public class GetClinetDetailsRS : WHMCSBASE
    {
        private int _TotalResults;
        private int _StartNumber;
        private int _NumReturned;
        private ClinetDetails _ClinetDetails;


        [DataMember()]
        public ClinetDetails ClientDetails
        {
            get { return _ClinetDetails; }
            set
            {
                if (_ClinetDetails != value)
                {
                    _ClinetDetails = value;
                }
            }
        }

        [DataMember()]
        public virtual int TotalResults
        {
            get { return _TotalResults; }
            set
            {
                if (_TotalResults != value)
                {
                    _TotalResults = value;
                    NotifyPropertyChanged("TotalResults");
                }
            }
        }

        [DataMember()]
        public virtual int StartNumber
        {
            get { return _StartNumber; }
            set
            {
                if (_StartNumber != value)
                {
                    _StartNumber = value;
                    NotifyPropertyChanged("StartNumber");
                }
            }
        }

        [DataMember()]
        public virtual int NumReturned
        {
            get { return _NumReturned; }
            set
            {
                if (_NumReturned != value)
                {
                    _NumReturned = value;
                    NotifyPropertyChanged("NumReturned");
                }
            }
        }
    }


    public class ClinetDetails
    {
        private int _Result;
        private string _Userid;
        private int _Id;
        private string _Firstname;
        private string _Lastname;
        private string _Companyname;
        private string _Email;
        private string _Address1;
        private string _Address2;
        private string _City;
        private string _State;
        private string _Postcode;
        private string _Country;
        private string _Countryname;
        private string _Phonenumber;
        private string _Notes;
        private string _Password;
        private string _Currency;
        private string _Securityqid;
        private string _Securityqans;
        private string _Groupid;
        private string _Status;
        private decimal _Credit;
        private string _Taxexempt;
        private string _Latefeeoveride;
        private string _Overideduenotices;
        private string _Language;
        private string _Lastlogin;
        private int _Billingcid;
        private string _CustomfieldsX;

        [DataMember()]
        public int Result
        {
            get { return _Result; }
            set
            {
                if (_Result != value)
                {
                    _Result = value;
                }
            }
        }

        [DataMember()]
        public string Userid
        {
            get { return _Userid; }
            set
            {
                if (_Userid != value)
                {
                    _Userid = value;
                }
            }
        }

        [DataMember()]
        public int Id
        {
            get { return _Id; }
            set
            {
                if (_Id != value)
                {
                    _Id = value;
                }
            }
        }

        [DataMember()]
        public string Address1
        {
            get { return _Address1; }
            set
            {
                if (_Email != value)
                {
                    _Address1 = value;
                }
            }
        }

        [DataMember()]
        public string Address2
        {
            get { return _Address2; }
            set
            {
                if (_Email != value)
                {
                    _Email = value;
                }
            }
        }

        [DataMember()]
        public string City
        {
            get { return _City; }
            set
            {
                if (_Email != value)
                {
                    _City = value;
                }
            }
        }

        [DataMember()]
        public string State
        {
            get { return _State; }
            set
            {
                if (_State != value)
                {
                    _State = value;
                }
            }
        }

        [DataMember()]
        public string Postcode
        {
            get { return _Postcode; }
            set
            {
                if (_Postcode != value)
                {
                    _Postcode = value;
                }
            }
        }

        [DataMember()]
        public string Country
        {
            get { return _Country; }
            set
            {
                if (_Country != value)
                {
                    _Country = value;
                }
            }
        }

        [DataMember()]
        public string Countryname
        {
            get { return _Countryname; }
            set
            {
                if (_Countryname != value)
                {
                    _Countryname = value;
                }
            }
        }

        [DataMember()]
        public string Phonenumber
        {
            get { return _Phonenumber; }
            set
            {
                if (_Phonenumber != value)
                {
                    _Phonenumber = value;
                }
            }
        }


        [DataMember()]
        public string Notes
        {
            get { return _Notes; }
            set
            {
                if (_Notes != value)
                {
                    _Notes = value;
                }
            }
        }

        [DataMember()]
        public string Password
        {
            get { return _Password; }
            set
            {
                if (_Email != value)
                {
                    _Password = value;
                }
            }
        }

        [DataMember()]
        public string Currency
        {
            get { return _Currency; }
            set
            {
                if (_Email != value)
                {
                    _Currency = value;
                }
            }
        }

        [DataMember()]
        public string Securityqid
        {
            get { return _Securityqid; }
            set
            {
                if (_Securityqid != value)
                {
                    _Securityqid = value;
                }
            }
        }

        [DataMember()]
        public string Securityqans
        {
            get { return _Securityqans; }
            set
            {
                if (_Securityqans != value)
                {
                    _Securityqans = value;
                }
            }
        }

        [DataMember()]
        public string Groupid
        {
            get { return _Groupid; }
            set
            {
                if (_Groupid != value)
                {
                    _Groupid = value;
                }
            }
        }

        [DataMember()]
        public string Status
        {
            get { return _Status; }
            set
            {
                if (_Email != value)
                {
                    _Status = value;
                }

            }
        }

        [DataMember()]
        public decimal Credit
        {
            get { return _Credit; }
            set
            {
                if (_Credit != value)
                {
                    _Credit = value;
                }
            }
        }

        [DataMember()]
        public string Taxexempt
        {
            get { return _Taxexempt; }
            set
            {
                if (_Taxexempt != value)
                {
                    _Taxexempt = value;
                }
            }
        }

        [DataMember()]
        public string Latefeeoveride
        {
            get { return _Latefeeoveride; }
            set
            {
                if (_Latefeeoveride != value)
                {
                    _Latefeeoveride = value;
                }
            }
        }

        [DataMember()]
        public string Overideduenotices
        {
            get { return _Overideduenotices; }
            set
            {
                if (_Overideduenotices != value)
                {
                    _Overideduenotices = value;
                }
            }
        }

        [DataMember()]
        public string Language
        {
            get { return _Language; }
            set
            {
                if (_Language != value)
                {
                    _Language = value;
                }
            }
        }

        [DataMember()]
        public string Lastlogin
        {
            get { return _Lastlogin; }
            set
            {
                if (_Lastlogin != value)
                {
                    _Lastlogin = value;
                }
            }
        }

        [DataMember()]
        public int Billingcid
        {
            get { return _Billingcid; }
            set
            {
                if (_Billingcid != value)
                {
                    _Billingcid = value;
                }

            }
        }

        [DataMember()]
        public string CustomfieldsX
        {
            get { return _CustomfieldsX; }
            set
            {
                if (_Email != value)
                { }
                _CustomfieldsX = value;
            }
        }


        [DataMember()]
        public string Firstname
        {
            get { return _Firstname; }
            set
            {
                if (_Firstname != value)
                {
                    _Firstname = value;
                }
            }
        }

        [DataMember()]
        public string Lastname
        {
            get { return _Lastname; }
            set
            {
                if (_Lastname != value)
                {
                    _Lastname = value;
                }
            }
        }

        [DataMember()]
        public string Companyname
        {
            get { return _Companyname; }
            set
            {
                if (_Companyname != value)
                {
                    _Companyname = value;
                }
            }
        }

        [DataMember()]
        public string Email
        {
            get { return _Email; }
            set
            {
                if (_Email != value)
                {
                    _Email = value;
                }
            }
        }
    }
}
